﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="LivingMemberLivingForm.aspx.cs" Inherits="App_Input_LivingMemberLivingForm" Title="会员生活信息维护"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script language="javascript" type="text/javascript">
            function sumamount(id)
            {
                var price ="ctl00_ContentPlaceHolder1_txtPrice_" + id;
                var multiple="ctl00_ContentPlaceHolder1_txtMultiple_" + id;
                var amount="ctl00_ContentPlaceHolder1_txtAmount_" + id;
                
                var txtprice=window.document.getElementById(price).value ;
                var txtmultiple=window.document.getElementById(multiple).value ;
                if(txtprice==""||txtmultiple==""||isNaN(txtprice)||isNaN(txtmultiple))
                {
                    window.document.getElementById(amount).value="";
                }
                else
                {
                    window.document.getElementById(amount).value=txtprice * txtmultiple;
                }
            }
            function sumamountfee(id)
            {
                var price ="ctl00_ContentPlaceHolder1_txtPriceFee_" + id;
                var multiple="ctl00_ContentPlaceHolder1_txtMultipleFee_" + id;
                var amount="ctl00_ContentPlaceHolder1_txtAmountFee_" + id;
                
                var txtprice=window.document.getElementById(price).value ;
                var txtmultiple=window.document.getElementById(multiple).value ;
                if(txtprice==""||txtmultiple==""||isNaN(txtprice)||isNaN(txtmultiple))
                {
                    window.document.getElementById(amount).value="";
                }
                else
                {
                    window.document.getElementById(amount).value=txtprice * txtmultiple;
                }
            }
    </script>
    &nbsp;<div id="tableResult">
        <table width="100%">
            <tr>
                <td align="left" >
                <script language="javascript">
                                        (new TitleBar('SearchBar', '会员生活信息列表')).showBar();
                            </script>
                </td>
            </tr>
            <tr>
                                <td class="" id="Td1" runat="server">
                                    <asp:Table CssClass="GridView_table" ID="TblLiving" runat="server" EnableViewState="true">
                                        <asp:TableRow>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="5%">选择</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="7%">开始时间</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="7%">结束时间</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="15%">生活内容</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="40%">生活方式</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="10%">单价</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="10%">月倍数</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="10%">金额</asp:TableHeaderCell>
                                        </asp:TableRow>
                                    </asp:Table>
                                </td>
                    
            </tr>
            <tr>
                <td align="left" >
                <script language="javascript">
                                        (new TitleBar('SearchBar', '会员费用信息列表')).showBar();
                            </script>
                </td>
            </tr>
            <tr>
                                <td class="" id="Td2" runat="server">
                                    <asp:Table CssClass="GridView_table" ID="TblFee" runat="server" EnableViewState="true">
                                        <asp:TableRow>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="5%">选择</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="15%">费用类型</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="50%">费用内容</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="10%">单价</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="10%">月倍数</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="10%">金额</asp:TableHeaderCell>
                                        </asp:TableRow>
                                    </asp:Table>
                                </td>
                    
            </tr>
            
                    <tr>
                        <td align="center" style="">
                            &nbsp; &nbsp;&nbsp;
                            <asp:Button ID="btnOk" runat="server" Text="  登 记  " Height="22px" Width="89px" CssClass="button" OnClick="btnOk_Click"/>
                            &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;                            
                            <asp:Button ID="btnBack" runat="server" Text="  返 回  " Height="22px" Width="89px" CssClass="button" OnClick="btnBack_Click" /></td>
                    </tr>            
        </table>
        
    </div>
</asp:Content>
